package com.haoze.nurse.dao;

import com.haoze.nurse.enumeration.NurseFileTypeEnum;
import com.haoze.nurse.model.EmrFileIndexEntity;
import com.haoze.nurse.model.EmrNursingcareRelationEntity;
import com.haoze.nurse.model.NurseFileIndexEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface NurseTransMapper {

    EmrFileIndexEntity queryEmrFileIndex(@Param("inpatNum") String inpatNum);

    void transFileIndexData(@Param("inpatNum") String inpatNum);

    List<EmrNursingcareRelationEntity> queryEmrNursingcarRelations(@Param("fileIndexId") String fileIndexId);

//    void transFileDataData(@Param("emrFileId") String emrFileId,
//                           @Param("groupNo") String groupNo,
//                           @Param("inpatNum") String inpatNum);

    //--------------------------备注评估项目数据转换
    List<NurseFileIndexEntity> queryAllAssessRemark();

    Map<String, String> queryDictValue(@Param("basicDataId") String basicDataId,
                                       @Param("basicDataRemark") String basicDataRemark);

    int transHistoryData(@Param("inpatNum") String inpatNum,
                         @Param("recordType") String recordType,
                         @Param("dataValue") String dataValue,
                         @Param("dataCode") String dataCode,
                         @Param("varCode") String varCode);

    List<String> queryDetailDataRecordCaprini(@Param("assessName") String assessName,
                                              @Param("varCode") String varCode);

    String queryDetailDataAssessRemark(@Param("inpatNum") String inpatNum,
                                       @Param("varCode") String varCode);

    List<String> queryAllAssess(@Param("recordType") String recordType);

    List<String> queryUnuseAssess(@Param("inpatNum") String inpatNum,
                                  @Param("remarkRecordType") String remarkRecordType,
                                  @Param("recordType") String recordType,
                                  @Param("varCode") String varCode);

    String queryWardNameByInpatNum(@Param("inpatNum") String inpatNum);


}
